import request from '@/utils/request'

// 查询公路信息列表
export function listGonglu(query) {
  return request({
    url: '/biz/gonglu/list',
    method: 'get',
    params: query
  })
}
export function getMaplist(query) {
  return request({
    url: '/biz/gonglu/getMaplist',
    method: 'get',
    params: query
  })
}

// 查询公路信息详细
export function getGonglu(id) {
  return request({
    url: '/biz/gonglu/' + id,
    method: 'get'
  })
}

// 新增公路信息
export function addGonglu(data) {
  return request({
    url: '/biz/gonglu',
    method: 'post',
    data: data
  })
}

// 修改公路信息
export function updateGonglu(data) {
  return request({
    url: '/biz/gonglu',
    method: 'put',
    data: data
  })
}

// 删除公路信息
export function delGonglu(id) {
  return request({
    url: '/biz/gonglu/' + id,
    method: 'delete'
  })
}

// 导出公路信息
export function exportGonglu(query) {
  return request({
    url: '/biz/gonglu/export',
    method: 'get',
    params: query
  })
}